package com.jar.exercise.集合和数据结构.hashmap进阶用法;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

public class Demo {
    public static void main(String[] args) {
        String a = "a";
        int i = 97;
        System.out.println(a.hashCode() == Integer.hashCode(i));
        System.out.println(a.equals(i));
    }

    @Test
    public void test1() {
        Map<Object, String> map = new HashMap<>();
        map.put("a", "a");
        map.put(75, "75");
        System.out.println(map);
    }
}
